package com.mongodb.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * Created by Lenovo
 * DATA:2024/5/11
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("test")
public class User {
    @Id
    private String id;
    private String name;
    private String age;

    private String sex;
    private String bobby;
}
